<template>
  <div>
    <FormInstance
      :options="options"
      label-width="200px"
      ref="form"
      @submit="onSubmitForm"
    />
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue'
import FormInstance from '@/components/form-component/index.vue'
import { options } from './useProps'

let ruleForm = reactive({})
const onSubmitForm = (form) => {
  ruleForm = form
  alert(JSON.stringify(ruleForm))
}
</script>

<style scoped></style>
